import instance from '../../utils/request.js'

// 通知轮播图
export const studentCarousel = (params) => {
  const { limit=5 } = params
  return instance({
    url: `/api/student/home/carousel`,
    method: 'GET',
    params: { limit }
  })
}

//热点提问
export const hotQuestion = (params) => {
  const { limit=5 } = params
  return instance({
    url: '/api/student/home/hot-questions',
    method: 'GET',
    params: { limit }
  })
}

// 最新通知
export const latestInfo = (params) => {
  const { limit=5 } = params
  return instance({
    url: '/api/student/home/latest-notices',
    method: 'GET',
    query: { limit }
  })
}